package com.zysf.library_boot.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.zysf.library_boot.dto.BookCollect;
import com.zysf.library_boot.dto.CollectDto;
import com.zysf.library_boot.entity.Collect;
import com.zysf.library_boot.service.CollectService;
import com.zysf.library_boot.mapper.CollectMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
* @author 31161
* @description 针对表【collect】的数据库操作Service实现
* @createDate 2024-12-29 14:57:08
*/
@Service
public class CollectServiceImpl extends ServiceImpl<CollectMapper, Collect>
    implements CollectService{

    @Autowired
    CollectMapper collectMapper;


    @Override
    public IPage<BookCollect> getReaderBookCollect(Integer id, Page<BookCollect> page) {
        return collectMapper.selectBookCollect(id, page);
    }
}




